package rifl.meres4.commons.model;

import java.util.ArrayList;

/**
 * UIComponent class.
 * 
 * @author Mark Czotter
 * @author Miklos Szennai
 * 
 */
public class UIComponent implements SoftwareComponent {

	private String name;

	private ArrayList<ImplementationClass> implClasses;

	public UIComponent(String name) {
		this.name = name;
	}
	
	public ArrayList<ImplementationClass> getImplClasses() {
		return implClasses;
	}

	public void setImplClasses(ArrayList<ImplementationClass> implClasses) {
		this.implClasses = implClasses;
	}

	public synchronized void addImplementationClass(ImplementationClass ic) {
		this.implClasses.add(ic);
	}

	@Override
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
